<style>
    .content {
        min-height: inherit;
    }
    .control-label {
        text-align: right;
    }
</style>
<form id="config-form" class="form-horizontal" role="form" data-toggle="validator" method="POST">
    {if condition="!$shopId"}
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('选择门店')}:</label>
        <div class="col-xs-5">
            {:build_select('row[shop_id]', $shopList, $Request.get.shop_id, ['class'=>'form-control selectpicker'])}
        </div>
    </div>
    {else /}
    <input type="hidden" name="row[shop_ids]" value="{$shopId}">
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('桌号前缀')}:</label>
        <div class="col-xs-5">
            <input id="c-number_prefix" class="form-control" type="text" name="row[number_prefix]" title="" placeholder="比如：A">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('桌号范围')}:</label>
        <div class="col-xs-5">
            <div class="input-group">
                <input id="c-start_number" class="form-control" type="number" name="row[start_number]" title="" placeholder="1">
                <span class="input-group-addon no-border no-padding">
                    <button class="btn btn-default" type="button">~</button>
                </span>
                <input id="c-end_number" class="form-control" type="number" name="row[end_number]" title="" placeholder="100">
                <span class="msg-box n-right"></span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-4">{:__('桌号备注')}:</label>
        <div class="col-xs-5">
            <input id="c-note" class="form-control" type="text" name="row[note]" title="" placeholder="比如：圆桌">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-4"></label>
        <div class="col-xs-5">
            <button class="btn btn-success btn-embossed disabled" type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>